package com.example.function;

import java.util.function.Function;

public class FunctionTest2 {
    public static void main(String[] args) {
        System.out.println(testApply("test", val -> val.length()));
    }

    static Integer testApply(String str, Function<String, Integer> function) {
        return function.apply(str);
    }

}
